<%--
  Created by IntelliJ IDEA.
  User: 15618
  Date: 2022/4/8
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
    </script>
</head>
<body>
    <button id="btn">ajax提交</button>
</body>
<script>
    $(function () {
        $("#btn").click(function(){
            $.ajax({
                url:"selectAll",
                dataType:"json",
                type:"get",
                cache:false,
                success:function (res) {
                    console.log(res)
                },
                error:function(err){
                    console.log("系统出现错误了",err)
                }
            })
        })
    })
</script>
</html>
